namespace img
{
	int drawwed=0;
}

class ImgPoint
{
public:
	int x,y;
	ImgPoint(int x_,int y_):x(x_),y(y_){};
};

typedef std::list<ImgPoint> ImgPointsList;

class Image
{
	GLubyte *p;
	unsigned int width;
	unsigned int height;
	unsigned int tex;
	unsigned int twidth,theight;
	float u,v;

	int drawwing;

	 ImgPointsList *calls;

public:
	Image(const char* filename,bool useDXT5);
	~Image();
	void Draw(int x, int y);
	void Drawf(float x, float y);
	void StartDraw();
	void EndDraw();

	void StartDefferedDrawing();
	void EndDefferedDrawing();
	void DefferedDraw(int x, int y);

	void BindTex(unsigned int level);

	int Width();
	int Height();
};

void StartDraw();
void EndDraw();

